<div class="pg_cent doc">
<% if @archive.nil? %>
<div class="bm pgdl">
		<div class="bm_t mid_t">
			<h2>
				<div class="n_title" >客户端下载</div>
			</h2>
		</div>
		<div class="pg_cent doc pg_download">
			<div>版  本  号：<%= @client.version %><br/>
			发布时间：<%= @client.pubtime %>    大小：<%= @client.filesize %><br/>
			版本说明：<%= @client.remark %><br/>
			</div>
			<div class="pg_dlbtns">
				<%= link_to '普通下载', @client.downurl %>
				<%= link_to 'FTP下载', @client.downurl %>
				<%= link_to '迅雷下载', @client.downurl %>
			</div>
		</div>
	<div class="bm_t mid_t">
    <h2>
      <div class="n_title" >补丁下载</div>
    </h2>
  </div>
  <div class="pg_cent doc">
  	<table class="dl_tb">
    	<tr>
      	<th>补丁</th>
      	<th width="100">时间</th>
      	<th width="50">大小</th>
      	<th width="220">下载</th>
      </tr>
			<% @plugin.each do |p| %>
      <tr>
      	<td><%= p.version %></td>
      	<td><%= p.pubtime %></td>
      	<td><%= p.filesize %></td>
      	<td>
					<%= link_to '普通下载', p.downurl%>
					<%= link_to 'FTP下载', p.downurl%>
				</td>
      </tr>
			<% end %>
    </table>
  </div>
	<div class="bm_t mid_t">
    <h2>
      <div class="n_title" >相关插件下载</div>
    </h2>
  </div>
  <div class="pg_cent doc">
  	<table class="dl_tb">
    	<tr>
      	<th>相关工具</th>
      	<th>说明</th>
      	<th width="50">大小</th>
      	<th width="220">下载</th>
      </tr>
			<% @other.each do |o| %>      
			<tr>
      	<td><%= o.title %></td>
      	<td><%= o.remark %></td>
      	<td><%= o.filesize %></td>
      	<td>
					<%= link_to '普通下载', o.downurl%>
					<%= link_to 'FTP下载', o.downurl%>
				</td>
      </tr>
			<% end %>
    </table>
  </div>
</div>
<% else %>
  <%= @archive.content.html_safe %>
<% end %>
</div>
